package cn.controller;

import cn.other.CustomerBo;
import cn.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by wsx on 2017/1/5.
 */
@Controller
@RequestMapping("/")
public class HomeController {
    @Autowired
    CustomerBo customer;

    @RequestMapping(value = "", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    public String index(){
        customer.addCustomer();
        return "index";
    }
}
